#ifndef _PLCSERIAL_HPP
#define  _PLCSERIAL_HPP
#include <pic.h>
#include <stdio.h>
#include "picpredef.h"

/*
#define         byte    unsigned char

#define	_WDT

#define         TRUE    1
#define         FALSE   0

#define		cnSuccess	1
#define		cnFail		0
*/

typedef byte (*FunPoint) (void)  ;
typedef byte (*FunP1 ) ( byte * , byte ); 

struct BYTEBIT {
unsigned b0: 1;
unsigned b1: 1;
unsigned b2: 1;
unsigned b3: 1;
unsigned b4: 1;
unsigned b5: 1;
unsigned b6: 1;
unsigned b7: 1;
};


union  BYTEBITDEF{
struct BYTEBIT onebyte;
unsigned char bitbyte;
} ;


#endif
